<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="page" uri="hechuangqiang@gmail.com"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>起草列表</title>
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/odd.js"></script>
<script type="text/javascript">
	function delById(id){
		if(confirm("确认要删除吗？")){
			window.location.href="v/resourceAction/del?resource.resourceId=" + id;
		}
	}
</script>
</head>

<body>
<div class="current">您的当前位置：资源管理 <img src="images/arrow1.gif" /><img src="images/arrow1.gif" /> 资源列表
<div class="current_btn"><input type="submit" name="button2" id="button2" value="新增" class="btn_add" onmousemove="this.className='btn_add_on'" onmouseout="this.className='btn_add'" onclick="window.location.href='v/resourceAction/willAdd';"/></div></div>
<div class="solid_line"></div>
<!--搜索 begin-->
<div class="search">
<table class="table_search">
  <tr>
    <th></th>
    <td>
	    <input name="textfield2" type="text"   class="inputbox" id="textfield2"  onmousemove="this.className='inputbox_on'" onmouseout="this.className='inputbox'" size="23"/> 
	    <input type="submit" name="button2" id="button2" value="查询" class="btn_search" onmousemove="this.className='btn_search_on'" onmouseout="this.className='btn_search'"/></td>

  </tr>
</table>
</div>
<!--搜索 end-->
<div class="solid_line"></div>
<!--提示信息 begin-->
<div class="tip_error" style="display:none;">对不起，暂时未查到符合条件的信息。</div>
<!--提示信息 end-->
<!--查询结果 begin-->
<div class="table_div">
<table border="0" cellpadding="0" cellspacing="0" class="table_info">
<tr>
<th class="frist">序号</th>
<th><img src="images/line_1.gif" />资源标识</th>
<th><img src="images/line_1.gif" />资源名称</th>
<th><img src="images/line_1.gif" />备  注</th>
<th><img src="images/line_1.gif" />操作</th>
</tr>
<s:iterator value="list" id="resource" status="i">
	<tr>
		<td><s:property value="#i.count"/></td>
		<td><s:property value="#resource.name"/></td>
		<td><s:property value="#resource.title"/></td>
		<td><s:property value="#resource.remark"/></td>
		<td>
		<a href="javascript:delById('<s:property value="#resource.resourceId"/>')">删除</a>
		 <a href="v/resourceAction/load?resource.resourceId=<s:property value="#resource.resourceId"/>">编辑</a>
		 </td>
	</tr>
</s:iterator>

</table>
</div>
<!--查询结果 end-->
     <!--分页开始-->
     <center><page:page action="${pager.action}"
		pageNo="${pager.pageNo}" pageSize="${pager.pageSize}"
		resultCount="${pager.resultCount}">
	</page:page></center>
      <!--分页结束-->
</body>
</html>